<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ctg="http://www.crotouristguide.com/taglib">

<ui:component>

	<h:form>
		<rich:dataTable value="#{objaveByKorisnik}" var="objava" columns="1"
			rows="15" width="100%">
			<h:column>
				<h:outputLink
					value="#{application.contextPath}/guides/objekti/objekt.seam}">
					<f:param name="idObjekta" value="#{objava.objekt.idObjekta}"/>
					<f:param name="l" value="#{currentLang}"/>
					<f:param name="title" value="#{titleAction.getUrlTitle(objava.objekt)}"/>
					<h:outputText
						value="#{objava.objekt.tipObjekta.naziv} #{objava.objekt.naziv}" />
				</h:outputLink>,
				<h:outputLink
					value="#{application.contextPath}/guides/mjesta/mjesto.seam">
					<f:param name="idMjesta" value="#{objava.objekt.mjesto.idMjesta}" />
					<f:param name="l" value="#{currentLang}" />
					<f:param name="title" value="#{titleAction.getUrlTitle(mjesto)}"/>
					<h:outputText value="#{objava.objekt.mjesto.naziv}" />
				</h:outputLink>					
				<br />
				<h:outputText value="#{objava.tipObjave.naziv}: " />
				<h:outputText value="#{objava.naslov}" styleClass="title-14" />
				<br />
				<h:outputText value="#{objava.tekst}" />
				<br />
				<h:outputText value="#{objava.stranica}: #{objava.www}" />
				<br />
				<s:link value="#{messages['label.edit']}"
					action="#{objavaAction.editSetup('backToObjave')}">
					<f:param name="idObjekta" value="#{objava.objekt.idObjekta}" />
				</s:link>
				<div><h:outputText
					value="#{objava.datum}" /></div>
				<s:div styleClass="rich-separator"></s:div>
				<br />
			</h:column>
			<f:facet name="footer">
				<rich:datascroller></rich:datascroller>
			</f:facet>
		</rich:dataTable>
	</h:form>
</ui:component>

</html>